from django.urls import path,include
from . import views
from .views import logout_view

from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    path('register/', views.register, name='register'),
    path('login', views.login, name='login'),
    path('index/', views.index,name='index'),
    path('center/',views.center,name='center'),
    path('center/profile_edit',views.profile_edit, name='profile_edit'),
    path('order/list/', views.order_list, name='order_list'),
    path('products/', views.product_list, name='product_list'),
    path('order/create/<int:product_id>', views.create_order, name='create_order'),
    path('product/<int:pk>/', views.product_detail, name='product_detail'),
    path('question/', views.chat_api, name='chat-api'),
    path('logout/', logout_view, name='logout'),

] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
